(smtpmail-via-smtp): Only negotiate starttls on
authorSimon Josefsson <jas@extundo.com>
Sun, 29 Sep 2002 03:19:35 +0000 (03:19 +0000)
committerSimon Josefsson <jas@extundo.com>
Sun, 29 Sep 2002 03:19:35 +0000 (03:19 +0000)
streams that were opened using starttls.

lisp/mail/smtpmail.el

index 78393348c5dfd86379a5585f52fbd7f474197426..82fbfdad5ed3ce96a701bddd77d4bfaede97cd63 100644 (file)
@@ -613,7 +613,7 @@ This is relative to `smtpmail-queue-dir'.")
            (if (and do-starttls
                     (smtpmail-find-credentials smtpmail-starttls-credentials host port)
                     (member 'starttls supported-extensions)
-                    (process-id process))
+                    (numberp (process-id process)))
                (progn
                  (smtpmail-send-command process (format "STARTTLS"))
                  (if (or (null (car (setq response-code (smtpmail-read-response process))))